package org.dev.biz_search

import org.dev.hi.library.restful.HiCall
import org.dev.hi.library.restful.annotation.Field
import org.dev.hi.library.restful.annotation.GET
import org.dev.hi.library.restful.annotation.POST

/**
 * Author WenPing
 * CreateTime 2021/8/26.
 * Description:
 */
interface SearchApi {
    @GET("goods/search/quick")
    fun quickSearch(@Field("keyWord") keyword: String): HiCall<QuickSearchList>

    @POST("goods/search", formPost = false)
    fun goodsSearch(
        @Field("keyWord") keyword: String,
        @Field("pageIndex") pageIndex: Int,
        @Field("pageSize") pageSize: Int
    ): HiCall<GoodsSearchList>
}